﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Muccu
{
    public class EmailAttribute: RegexAttribute
    {
        public EmailAttribute()
        {
            this.Pattern = @"^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$";
            this.ErrorMessage = "Not a valid email address";
        }
    }
}
